package com.cqgc.config;

import org.springframework.context.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author fengzongfu
 */
@Configuration
//排除Controller
@ComponentScan(value = "com.cqgc",
    excludeFilters =  @ComponentScan.Filter(
            type = FilterType.ANNOTATION,
            classes = Controller.class
    )
)
//加载外部配置文件jdbc.properties
@PropertySource("classpath:jdbc.properties")
//加载其他配置类JdbcConfig.class
@Import({JdbcConfig.class,MybatisConfig.class})
//开启事务注解扫描
@EnableTransactionManagement
public class SpringConfig {
}
